//
//  XZBaseController.m
//  XZLive-
//
//  Created by 何典钊 on 2016/12/18.
//  Copyright © 2016年 hedianzhao. All rights reserved.
//

#import "XZBaseController.h"
#import "XZPlayerController.h"
@interface XZBaseController ()

@end

@implementation XZBaseController

- (void)viewDidLoad {
    [super viewDidLoad];
 
    self.view.backgroundColor = [UIColor whiteColor];
    [self setupUI];
}
- (void)setupUI
{
    //创建按钮
    UIButton *btn = [[UIButton alloc] init];
//    btn.backgroundColor = [UIColor orangeColor];
    [btn setTitle:@"点进去会有惊喜哦" forState:UIControlStateNormal];
    [btn setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    btn.frame = CGRectMake(0, 0, 150, 27);
    btn.center = self.view.center;
    [btn addTarget:self action:@selector(pushViewContoller) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
}

- (void)pushViewContoller
{
    XZPlayerController *player = [[XZPlayerController alloc] init];
    
    [self.navigationController presentViewController:player animated:YES completion:nil];
}

@end
